package vip.web3.common.enums.user;

/**
 * aut-horlilei
 */

public enum PwdTypeEnum {

    /**
     * 登录密码
     */
    PWD(5, "登录密码"),

    /**
     * 支付密码
     */
    FUND_PWD(6, "支付密码"),
    ;

    private final Integer code;
    private final String desc;

    PwdTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static PwdTypeEnum get(Integer code) {
        for (PwdTypeEnum value : values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
